package response

type BodyAssessResponse struct {
	TtList []HealthManage `json:"tt_list"`
	Status *bool          `json:"status" gorm:"column:status"`
	Level  []PainLevel    `json:"level" gorm:"column:level"`
}

// HealthManage 疼痛方案结构体
type HealthManage struct {
	Name     string              `json:"name" gorm:"column:name"`
	TtlxID   uint                `json:"ttlx_id" gorm:"primarykey;column:id"`
	Ttids    []uint              `json:"ttids" gorm:"-"`
	Img      string              `json:"img" gorm:"column:image"`
	Ttdcount []HealthManageChild `json:"ttdcount" gorm:"foreignKey:Pid;references:TtlxID"`
}

// BodyBalanceResponse 身体平衡返回结果
type BodyBalanceResponse struct {
	BbList       []BodyBalance `json:"bb_list"`
	FcList       []FasciaChain `json:"fc_list"`
	Other        string        `json:"other"`
	CorrectCycle uint          `json:"correct_cycle"`
}

// BodyBalance 身体平衡结构体
type BodyBalance struct {
	ID      uint               `json:"id" gorm:"primarykey;column:id"`
	Name    string             `json:"name" gorm:"column:name"`
	TagIds  []uint             `json:"-" gorm:"-"`
	BbcInfo []BodyBalanceChild `json:"bbc_info" gorm:"foreignKey:Pid;references:ID"`
}

// FasciaChain 筋膜链结构体
type FasciaChain struct {
	ID     uint   `json:"id" gorm:"primarykey;column:id"`
	Name   string `json:"name" gorm:"column:name"`
	Select int    `json:"select"`
}

// BodyBalanceChild 身体平衡子分类结构体
type BodyBalanceChild struct {
	ChildID uint   `json:"child_id" gorm:"primarykey;column:id"`
	Pid     uint   `json:"-" gorm:"column:pid"`
	Text    string `json:"text" gorm:"column:name"`
	Value   uint   `json:"-" gorm:"-"`
	Select  int    `json:"select"`
}

type HealthManageChild struct {
	TtID  uint   `json:"tt_id" gorm:"primarykey;column:id"`
	Pid   uint   `json:"-" gorm:"column:pid"`
	Text  string `json:"text" gorm:"column:name"`
	Value uint   `json:"value" gorm:"-"`
}

type PainLevel struct {
	Text     string `json:"text"`
	Value    int    `json:"value"`
	Name     string `json:"name"`
	Color    string `json:"color"`
	ID       int    `json:"id"`
	IsChoose bool   `json:"isChoose"`
}

// TableName HealthManageChild 健康管理子分类表
func (HealthManageChild) TableName() string {
	return "fd_health_manage_child"
}

// TableName HealthManageChild 身体平衡子分类表
func (BodyBalanceChild) TableName() string {
	return "fd_health_manage_child"
}
